package com.chagee.store.operation.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @author: yuanzhiqin
 * @description:
 * @date: 2024/7/3.
 */

@AllArgsConstructor
@Getter
public enum LarkMessageReceiveEnum {

	START_APPEAL("START_APPEAL", "子公司申诉审核人/子公司三方打烊项目负责人/子公司运营总"),
	APPEAL_SUCCESS("APPEAL_SUCCESS", "子公司三方打烊项目负责人/门店店长/门店店助"),
	EXPIRED_APPEAL("EXPIRED_APPEAL", "子公司申诉审核人"),
	HANDLE_APPEAL("HANDLE_APPEAL", "门店店长/子公司三方打烊项目负责人"),
	ORDER_TAKING_NOTICE("ORDER_TAKING_NOTICE", "子公司申诉审核人"),
	NIGHT_SWEEP("NIGHT_SWEEP", "三方打烊项目组负责人"),
	SETTLEMENT_SUBMIT_INVOICE("SETTLEMENT_SUBMIT_INVOICE", "门店店长/加盟商/门店负责人(霸王功夫)"),

	;

	private final String type;
	private final String desc;

	public static LarkMessageReceiveEnum getByType(String type) {
		for (LarkMessageReceiveEnum value : values()) {
			if (Objects.equals(value.getType(), type)) {
				return value;
			}
		}
		return null;
	}
}
